package com.ophiux.client.controller;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
@CrossOrigin//解决跨域
public class NacosController {
    @Value("${com.ophiux.name}")
    private String userName ;

    @RequestMapping("/getConfig")
    public String getConfig() {
        return userName;
    }

}